package com.ms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 场地记录实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("place_record")
public class PlaceRecord {

    /** 记录id（自增主键） */
    @TableId(value = "re_id", type = IdType.AUTO)
    private Integer reId;

    /** 关联的租借申请记录id */
    @TableField("lea_id")
    private Integer leaId;

    /** 租借方id */
    @TableField("or_id")
    private Integer orId;

    /** 场地id */
    @TableField("pl_id")
    private Integer plId;

    /** 申请日期 */
    @TableField("app_time")
    private Date appTime;
}